<?php
/**
* @package   havefnu
* @subpackage havefnuportal
* @author    FoxMaSk
* @copyright 2008 FoxMaSk
* @link      http://www.havefnu.com
* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
*/

class warCtrl extends jController {
    /**
    *
    */
    public $pluginParams = array(
        'index'         =>array('auth.required'=>false),
        'show'          =>array('auth.required'=>false),
        'awards'        =>array('auth.required'=>false),
        'admin'         =>array('jacl2.rights.and'=>array('hfn.adminwar.index')),
        'admin_edit'    =>array('jacl2.rights.and'=>array('hfn.adminwar.edit')),
        'admin_delete'  =>array('jacl2.rights.and'=>array('hfn.adminwar.edit')),
    );
    
    function index() {
        $rep = $this->getResponse('html');
        $rep->body->assign("MAIN", jZone::get('havefnu~teams_wars'));
        return $rep;
    }

    function show() {
        $rep = $this->getResponse('html');
        $id_war = $this->param('id_war');
        $rep->body->assign("MAIN", jZone::get('havefnu~war_show',array('id_war'=>$id_war)));
        return $rep;
    }
    
    function awards() {
        $rep = $this->getResponse('html');

        return $rep;
    }
    
    function admin() {
        $rep = $this->getResponse('html');

        return $rep;        
    }
    
    function admin_edit() {
        $rep = $this->getResponse('html');

        return $rep;        
    }
    
    function admin_delete() {
        $rep = $this->getResponse('html');

        return $rep;        
    }      
}

